<ExtensionModel>
	
	<Runtime>
		<Import assembly="Xamarin.Mac.dll" />
		<ScanExclude path="Xamarin.Mac.dll" />
	</Runtime>

	<Extension path = "/MonoDevelop/Core/PlatformService">
		<Condition id = "Platform" value = "mac">
			<Class id      = "PlatformService"
			       class   = "MonoDevelop.MacIntegration.MacPlatformService"/>
		</Condition>
	</Extension>
	
	<Extension path = "/MonoDevelop/Ide/Commands/Window">
		<Condition id = "Platform" value = "mac">
			<Command id  = "MonoDevelop.MacIntegration.MacIntegrationCommands.MinimizeWindow"
					defaultHandler = "MonoDevelop.MacIntegration.MacMinimizeWindowHandler"
					_label = "_Minimize"
					_description = "Minimize the Window"
					macShortcut = "Meta|M" />
			<Command id  = "MonoDevelop.MacIntegration.MacIntegrationCommands.ZoomWindow"
					defaultHandler = "MonoDevelop.MacIntegration.MacZoomWindowHandler"
					_label = "_Zoom"
					_description = "Zoom the Window"/>
			<Command id  = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideWindow"
					defaultHandler = "MonoDevelop.MacIntegration.MacHideWindowHandler"
					_label = "_Hide Application"
					_description = "Hide Application"
					macShortcut = "Meta|H" />
			<Command id  = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideOthers"
					defaultHandler = "MonoDevelop.MacIntegration.MacHideOthersHandler"
					_label = "_Hide Others"
					_description = "Hide other applications' windows"
					macShortcut = "Meta|Alt|H" />
			<Command id  = "MonoDevelop.MacIntegration.MacIntegrationCommands.ShowOthers"
					defaultHandler = "MonoDevelop.MacIntegration.MacShowOthersHandler"
					_label = "Show All"
					_description = "Show all applications' windows" />
		</Condition>
	</Extension>
	
	<Extension path = "/MonoDevelop/Ide/Commands/Hidden">
		<Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.Services" _label="Services" />
	</Extension>

	<Extension path = "/MonoDevelop/Ide/MainMenu/Window">
		<Condition id = "Platform" value = "mac">
			<CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.MinimizeWindow"
			             insertafter = "NxtPrvSeparator" />
			<CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.ZoomWindow" />
			<SeparatorItem id = "winMinimizeSep" />
		</Condition>
	</Extension>
	
	<Extension path="/MonoDevelop/Ide/AppMenu">
		<Condition id = "Platform" value = "mac">
			<SeparatorItem id = "ServicesSeparator" insertbefore="QuitSeparator" />
			<CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.Services" />
			<SeparatorItem id = "HideSeparator" insertbefore="QuitSeparator" />
			<CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideWindow" />
			<CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.HideOthers" />
			<CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.ShowOthers" />
		</Condition>
	</Extension>
	
	<Extension path = "/MonoDevelop/Ide/Commands/Edit">
		<Command id = "MonoDevelop.MacIntegration.MacIntegrationCommands.OrderFrontCharacterPalette"
				defaultHandler = "MonoDevelop.MacIntegration.MacOrderFrontCharacterPaletteHandler"
				_label = "Emoji &amp; Symbols"
				macShortcut = "Control+Meta+Space" />
	</Extension>

	<Extension path = "/MonoDevelop/Ide/MainMenu/Edit">
		<CommandItem id = "MonoDevelop.MacIntegration.MacIntegrationCommands.OrderFrontCharacterPalette" insertafter = "Separator6" />
	</Extension>

	<Extension path = "/MonoDevelop/Components/DialogHandlers">
		<Condition id = "Platform" value = "mac">
			<Class class="MonoDevelop.MacIntegration.MacSelectFileDialogHandler" />
			<Class class="MonoDevelop.MacIntegration.MacAddFileDialogHandler" />
			<Class class="MonoDevelop.MacIntegration.MacOpenFileDialogHandler" />
			<Class class="MonoDevelop.MacIntegration.MacAlertDialogHandler" />
		</Condition>
	</Extension>

	<Extension path = "/MonoDevelop/Core/PasswordProvider">
		<Class class = "MonoDevelop.MacIntegration.MacKeychainPasswordProvider" />
	</Extension>
	
	<Extension path = "/MonoDevelop/Core/WebCredentialProviders">
		<Class class = "MonoDevelop.MacIntegration.MacProxyCredentialProvider" />
	</Extension>

	<Extension path = "/MonoDevelop/Core/StockIcons">
		<StockIcon stockid = "build" resource = "build.png" size="Menu" />
		<StockIcon stockid = "continue" resource = "continue.png" size="Menu" />
		<StockIcon stockid = "device" resource = "device.png" size="Menu" />
		<StockIcon stockid = "pause" resource = "pause.png" size="Menu" />
		<StockIcon stockid = "project" resource = "project.png" size="Menu" />
		<StockIcon stockid = "status-stop" resource = "status-stop-16.png" size="Menu" />
	</Extension>

	<Extension path = "/MonoDevelop/Core/HttpMessageHandlerProviders">
		<Class id = "NSUrlSessionHandlerProvider" class = "MonoDevelop.MacIntegration.MacHttpMessageHandlerProvider" />
	</Extension>
</ExtensionModel>
